import type { BaseResponse } from "@/api/index.d";
import service from "@/utils/service";

export const useRatingRuleCreateApi = (data: any): Promise<BaseResponse<any>> => {
  return service({
    url: `/v1/rating/rule/create`,
    method: "POST",
    data,
  });
};
export const useRatingRuleDeleteApi = (data: any): Promise<BaseResponse<any>> => {
  return service({
    url: `/v1/rating/rule/delete`,
    method: "POST",
    data,
  });
};
export const useRatingRuleListApi = (data: any): Promise<BaseResponse<any>> => {
  return service({
    url: `/v1/rating/rule/list`,
    method: "POST",
    data,
  });
};
export const useRatingRulePageApi = (data: any): Promise<BaseResponse<any>> => {
  return service({
    url: `/v1/rating/rule/page`,
    method: "POST",
    data,
  });
};
export const useRatingRuleUpdateApi = (data: any): Promise<BaseResponse<any>> => {
  return service({
    url: `/v1/rating/rule/update`,
    method: "POST",
    data,
  });
};
